package com.lpf.www.common.config;

import com.lpf.www.common.utils.JedisUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;

/**
 * @Author lpf
 * @Date 2022/1/8 下午10:40
 * @ProjectName live-streaming-os
 * @Version 1.0
 * @Description: 注入jedis连接对象
 */
@Configuration
public class RedisConfig {
    @Bean
    public Jedis getJedis(){
        return JedisUtils.getJedisPool().getResource();
    }
}
